<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="cn.com.hbhgkj.pojo.User"%>
<%@ page import="cn.com.hbhgkj.bussiness.*"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<base href="<%=basePath%>"> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>著作权登记信息系统</title>
<link type="text/css" rel="stylesheet"
	href="<%=request.getContextPath()%>/css/ext-all.css" />
<link type="text/css" rel="stylesheet"
	href="<%=request.getContextPath()%>/css/RowEditor.css" />


<%
	User user = (User) session.getAttribute("_CRS_USER_LOGIN_SSID");
%>

<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/createPeoples.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/formcheck.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/showtips.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/general.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/pgCalPicker.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/scroll.js"></script>


<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/ext/ext-base.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/ext/ext-all.js"></script>

<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/ext/RowEditor.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/common/commonStore.js"></script>

<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/login.js"></script>

<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/common/userPanel.js"></script>

<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/common/XmlTreeLoader.js"></script>

<%
	if (user != null && UserType.isReviewer(user.getUserType())) {
%>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/admin/ApplyingFormReviewGridPanel.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/admin/ApplicantReviewGridPanel.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/admin/AlterationFormReviewGridPanel.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/admin/MyRegisterationGridPanel.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/admin/ReviewedAlterationGridPanel.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/admin/ReviewedApplicantGridPanel.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/admin/ReviewedApplicationGridPanel.js"></script>
<%
	}
%>





<script type="text/javascript">
	Ext.onReady(function() {
		Ext.QuickTips.init();
		Ext.form.Field.prototype.msgTarget='side'; 
		
<%if (user == null) {%>
		loginWindow.show();
	
<%}%>});
	</script>
<%
	if (user != null) {
%>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/R21AppliedGridPanel.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/R41AppliedGridPanel.js"></script>
<script type="text/javascript">
		function getFunctionList(){
			
			return <%=user.getFunctionList()%>;
		}

		function getUserInfo() {
			var UserRecord = Ext.data.Record.create([{
				name : 'user.userName'
			},{
				name : 'user.companyName'
			},{
				name : 'user.IDType',
				type : 'int'
			},{
				name : 'user.IDNumber'
			},{
				name : 'user.detailAddress'
			},{
				name : 'user.postalcode'
			},{
				name : 'user.contact'
			},{
				name : 'user.contactNumber'
			},{
				name : 'user.phoneNumber'
			},{
				name : 'user.fax'
			},{
				name : 'user.email'
			}]);

			return new UserRecord({
				'user.userName' : '<%=user.getUserName()%>',
				'user.companyName' : '<%=user.getCompanyName()%>',
				'user.IDType' : <%=user.getIDType()%>,
				'user.IDNumber' : '<%=user.getIDNumber()%>',
				'user.detailAddress' : '<%=user.getDetailAddress()%>',
				'user.postalcode' : '<%=user.getPostalcode()%>',
				'user.contact' : '<%=user.getContact()%>',
				'user.contactNumber' : '<%=user.getContactNumber()%>',
				'user.phoneNumber' : '<%=user.getPhoneNumber()%>',
				'user.fax' : '<%=user.getFax()%>',
				'user.email' : '<%=user.getEmail()%>'
		});
	}
</script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/common/xml-tree-loader.js"></script>
<%
	}
%>


</head>
<div id="tree"></div>


<intput id="area" type="hidden" value="" />


<body>

</body>
</html>
